<?php
    session_start();
    ini_set('display_errors', 0);
    include ("process/ketnoi.php");
    include ("process/ham.php");
    include ("process/dangnhap/thoat.php");
    include ("process/dangnhap/xacdinh_dangnhap.php");
    include ("process/postget/post_get.php");
    include ("process/postget/fix_ie.php");

?>



<!DOCTYPE html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title> Shop Bán Máy Tính Online</title>
	<link rel="shortcut icon" href="image/logo/logo_uit.png" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

    <link type="text/css" rel="stylesheet" href="js-css/banner.css" />
    <link rel="stylesheet" type="text/css" href="js-css/news-footer.css" />
    <link rel="stylesheet" type="text/css" href="js-css/menu_trai.css" />
    <link rel="stylesheet" type="text/css" href="js-css/footer.css" />
    <link rel="stylesheet" type="text/css" href="js-css/user_styles.css" />
    <link rel="stylesheet" type="text/css" href="js-css/chung.css" />

	<link rel="stylesheet" href="n2one/support.css" type="text/css" media="all" />

    <script type="text/javascript" src="js-css/banner.js"></script>
    <script type="text/javascript" src="js-css/ej.widgets.all.min.js"></script>
    <script type="text/javascript" src="js-css/menu.js"></script>
    <script type="text/javascript" src="js-css/menu_trai.js"></script>
	<script type="text/javascript" src="n2one/footer_slide.js"></script>
    <script type="text/javascript" src="n2one/jquery.livehelp.js"></script>

    <link rel="stylesheet" type="text/css" href="clock/js/jquery.tzineClock.css" />
    <script type="text/javascript" src="clock/js/jquery.tzineClock.js"></script>
    <script type="text/javascript" src="clock/script.js"></script>


    <script type="text/javascript">
        function dong(){window.close();}
        function inn(){window.print();}
		/*function checkTime(i){
            if(i<10){
                i="0"+i;
            }
            return i;
        }*/
        function time(){
            var t=new Date();
            //var d=new Date();
            //var h=t.getHours();
            //var m=t.getMinutes();
            //var s=t.getSeconds();
		    //m=checkTime(m);
            //s=checkTime(s);
            var ng=t.getDate();
            var th=t.getMonth()+1;
            var na=t.getFullYear();
            //document.getElementById("dongho").innerHTML="Bây giờ là "+h+":"+m+":"+s;
            document.getElementById("ngay_home").innerHTML="Hôm nay "+ng+"/"+th+"/"+na;
            //setTimeout("time()",500);
        }
    </script>

    <body onload="time()" style="background: url(image/chung/brown.png); margin-left: 40px;">
	    <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-526d083e682be8be"></script>
		<script type="text/javascript">
			addthis.layers({
				'theme' : 'transparent',
				'share' : {
					'position' : 'left',
					'numPreferredServices' : 1
				},
				'follow' : {
					'services' : [
						{'service': 'facebook', 'id': 'https://www.facebook.com/tienminh.doan?ref=tn_tnmn'},
						{'service': 'twitter', 'id': 'MinhTien_2012'},
						{'service': 'linkedin', 'id': 'vn.linkedin.com/pub/tien-doan/85/442/bb3'},
						{'service': 'google_follow', 'id': 'plus.google.com/117053592950250516041'}
					]
				}
			});
		</script>
        <center>
            <div style="width: 990px; text-align: left; background-color: #CCCCCC;">
                <table id="tbwrapper" width="990px" border="0" bgcolor="" align="right">
                    <tr border="0">
                        <td colspan="3" height="206px" width="990px" align="right" border="0">
                            <!--hieu ung banner-->
                            <div id="banner" border="0">
                                <?php
                                $sql = 'select * from khuyen_mai';
                                $result = mysql_query($sql);
                                echo "<ul id='imageShow'>";
                                while ($row = mysql_fetch_array($result)) {
                                    echo "<li>";
                                    $link_chi_tiet="?thamso=chi_tiet_km&id=$row[id]";
                                    echo "<a href='$link_chi_tiet'>";
                                    echo "<img src='image/banner/$row[hinh_anh]' alt='banner' />";
                                    echo "</a>";
                                    echo "</li>";
                                }
                                echo "</ul>";
                                ?>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <font size="+1" color="#FFFFFF"><div id="fancyClock"></div></font>
                            <!--<div id="fancyClock"></div>-->
                        </td>
                        <td style="background: #27aec0" width="650px">
                            <table cellpadding="0" cellspacing="0">
                                <tr>
                                    <td align="center">
                                        <div class="wrapper">
                                            <ul class="nav">
                                                <li><center><a href="index.php">Trang chủ</a></li></center>
                                                <li><a href="?thamso=xuat_mot_tin&id=1">Giới thiệu</a></li>
                                                <li><a href="?thamso=xuat_mot_tin&id=2">Hướng dẫn</a></li>
                                                <li><a href="?thamso=khuyen_mai">Khuyến mãi</a></li>
                                                <li><a href="?thamso=lien_he">Liên hệ</a></li>
                                                <?php
                                                    //form lien he
                                                    $kd_ccc = $_SESSION['ky_danh__hhh'];
                                                    $sql = "SELECT admin  from user where user_name='$kd_ccc'";
                                                    $result = mysql_query($sql);
                                                    $row = mysql_fetch_array($result);
                                                    if ($row[admin] ==1) {
                                                        echo "<li><a href='admin/'>Admin</a></li>";
                                                }
                                                ?>
                                                <div class="clr"></div>
                                            </ul>
                                            <div class="clr"></div>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td style="background-color: #848484;text-align: center">
                            <font size="+1" color="#FFFFFF"><div id="ngay_home"></div></font>
                        </td>
                    </tr>

                    <tr>
                        <td colspan="3" bgcolor="#999999">
                            <font color="red" size="+2">
                                <marquee align="middle" direction="left" height="29px" onmouseout="this.start()" onmouseover="this.stop()" scrollamount="5" scrolldelay="10">
                                    <font>Chào mừng đến website bán hàng trực tuyến</font>
                                </marquee>
                            </font>
                        </td>
                    </tr>

                    <tr>
                        <td width="160px" valign="top">
                            <div id="than_trai">
                                <?php
                                    include("process/timkiem/timkiem.php");
                                ?>
                                <div class="leftMenu">
                                    <?php
                                        //phan danh muc san pham
                                        include ("interface/menu/mn_trai.php");
                                    ?>
                                </div>
                            </div>
                        </td>
                        <td width="650px" valign="top">
                            <?php
                                include ("process/phanthan/ht_than.php");
                            ?>
                        </td>
                        <td width="180px" align="center" valign="top" border="0">
                            <table style="border-collapse:collapse; border:1px solid #BBBCBB; border-radius: 10px;" width="185px" height="200px">
                                <tr align="center" valign="top">
                                    <td background="image/bgtitle/bgtitle_nguoidung.png" no-repeat height="29px"></td>
                                </tr>
                                <tr>
                                    <td id="user_section">
                                        <?php
                                            if($xacdinh_dangnhap=="co") {
                                                //echo "da dang nhap";
                                                include("process/dangnhap/khung_user.php");
                                            }
                                            else  {
                                                //echo "chua dang nhap"
                                                include("process/dangnhap/khung_dang_nhap.php");
                                            }
                                        ?>
                                    </td>
                                </tr>
                            </table>
                            <div class="cao_3_px"></div>
                            <table style="border-collapse:collapse; border:1px solid #BBBCBB" width="185px" height="170px">
                                <tr align="center" valign="top">
                                    <td background="image/bgtitle/bgtitle_giohang.png" height="29px"></td>
                                </tr>
                                <tr>
                                    <td>
                                        <?php
                                            include ("process/giohang/khung_gio_hang.php");
                                        ?>
                                    </td>
                                </tr>
                            </table>
                            <div class="cao_3_px"></div>
                            <table style="border-collapse:collapse; border:1px solid #BBBCBB" width="185px" height="400px">
                                <tr align="center" valign="top">
                                    <td background="image/bgtitle/bgtitle_sanphammoi.png" height="29px"></td>
                                </tr>
                                <tr>
                                    <td>
                                        <?php
                                            include ("process/spmoi/spmoi.php");
                                        ?>
                                    </td>
                                </tr>
                            </table>
                            <div class="cao_3_px"></div>
                            <table style="border-collapse:collapse; border:1px solid #BBBCBB" width="100%" height="200px">
                                <tr align="center" valign="top">
                                    <td background="image/bgtitle/bgtitle_sltc.png" height="29px"></td>
                                </tr>
                                <tr>
                                    <td align="center"><span>Thống kê</span>
                                        <p class="count"><a href="http://www.amazingcounter.com"><img border="0" src="http://cc.amazingcounters.com/counter.php?i=3142266&c=9427111" alt="real time tracker"></a><br></p>
                                        <span>Số Người Online</span>
                                        <p class="count"><script id="_waueb0">var _wau = _wau || []; _wau.push(["small", "3f8bar73qtzo", "eb0"]);(function() { var s=document.createElement("script"); s.async=true; s.src="http://widgets.amung.us/small.js";document.getElementsByTagName("head")[0].appendChild(s);})();</script>
                                        </p>
                                    </td>
                                </tr>
                                <!--<tr>
                                    <td>
                                        <?php
                                            //include ("process/hotro/hotro_tructuyen.php");
                                        ?>
                                    </td>
                                </tr>-->
                            </table>
                            <div class="cao_3_px"></div>
                            <!--<table style="border-collapse:collapse; border:1px solid #BBBCBB" width="100%" height="200px">
                                <tr align="center" valign="top">
                                    <td background="image/bgtitle.png" height="27px"><font size="4" color="white" style="5"><b>Hỗ trợ</b></font></td>
                                </tr>
                                <tr>
                                    <td>
                                        <?php
                                            include ("process/hotro/hotro_tructuyen.php");
                                        ?>
                                    </td>
                                </tr>
                            </table>
                            <div class="cao_3_px"></div>-->
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" valign="top"><!--mau footer-->
                            <div>
                                <div id="box_news">
                                    <div id='f_title_news' style="background: url(image/bgtitle/bgtitle_tintuc.png) no-repeat;"><a href="?thamso=tin_tuc">Tin tức mới</a></div>
                                    <div id='list_news'>
                                        <div id='view_news'>
                                            <?php
                                               include ("process/tintuc/news_footer.php");
                                            ?>
                                            <div class='clr'> </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <table cellpadding="0" cellspacing="0" height="10px" width="100%">
                                <!--<tr>
                                    <td align="center" valign="top" style="background: #408080">
                                        <div class="wrapper">
                                            <ul class="nav">
                                                <li><center><a href='index.php'>Trang Ch?</a></li></center>
                                                <li><a href='?thamso=xuat_mot_tin&id=1'>Gi?i Thi?u</a></li>
                                                <li><a href='?thamso=xuat_mot_tin&id=2'>H??ng D?n</a></li>
                                                <li><a href='?thamso=khuyen_mai'>Khuy?n M?i</a></li>
                                                <li><a href='?thamso=lien_he'>Liên H?</a></li>
                                                <li><a href="#">??ng Nh?p</a></li>
                                            </ul>
                                            <div class="clr"></div>
                                        </div>
                                    </td>
                                </tr>-->
                                <hr />
                                <tr>
                                    <td>
                                        <div id="footer-left">
                                            <a target="_blank" href="http://uit.edu.vn">
                                                <img src="image/logo/logo_uit.png" title='trường ĐH Công nghệ Thông tin ĐHQG TP. Hồ Chí Minh' alt="trường ĐH Công nghệ Thông tin ĐHQG TP. Hồ Chí Minh">
                                            </a>
                                            <font face="Times New Roman" color="green" size="3" aligment="right">
                                                Trường Đại Học Công Nghệ Thông Tin<br/>
                                                Đại Học Quốc Gia Thành Phố Hồ Chí Minh
                                            </font>
                                        </div>
                                        <div id='footer-mid'>
                                            <font face="Times New Roman" color="green" size="3" aligment="right">
                                                Nhóm Sinh Viên Thực Hiện :<br/>
                                                <span>Trần Trọng Nhân - 10520108</span><br/>
                                                <span>Đoàn Minh Tiến - 10520404</span><br/>
                                                <span>Đỗ Ngọc Sâm - 10520176</span><br/>
                                                <span>Nguyễn Phi Hùng - 10520395</span><br/>
                                                Khoa Công Nghệ Phần Mềm 05<br/>
                                                Đồ án môn Công Nghệ Web và ứng dụng<br/>
                                            </font>
                                            <a href="Bao cao/DOC/Nhom13_10520108_10520404_10520176_10520395.docx"><button style="width: 70px; height: 30px;" type="submit">Báo cáo</button></a>
                                        </div>
                                        <div id="footer-right">
                                            <div><font>Follows us:</font>
                                            <div>
                                                <a title="" target="_blank" href="http://www.tnc.com.vn/?vnTRUST=mod:advertise|type:advertise|lid:191" onmousedown="return rwt(this,'advertise',191)">
                                                    <img width="18" border="0" alt="" src="image/logo/twitter.png">
                                                </a>
                                                <a title="" target="_blank" href="http://www.tnc.com.vn/?vnTRUST=mod:advertise|type:advertise|lid:192" onmousedown="return rwt(this,'advertise',192)">
                                                    <img width="18" border="0" alt="" src="image/logo/facebook.png">
                                                </a>
                                                <a title="" target="_blank" href="http://www.tnc.com.vn/?vnTRUST=mod:advertise|type:advertise|lid:193" onmousedown="return rwt(this,'advertise',193)">
                                                    <img width="18" border="0" alt="" src="image/logo/googleplus.png">
                                                </a>
                                                <a title="Linkedin" target="_blank" href="http://www.tnc.com.vn/?vnTRUST=mod:advertise|type:advertise|lid:301" onmousedown="return rwt(this,'advertise',301)">
                                                    <img width="18" border="0" alt="Linkedin" src="image/logo/linkedin.png">
                                                </a>
                                                <br/>
                                                <div style="margin-top: 65px; margin-left: 180px;"><font face="Times New Roman" size="3">
                                                    Copyright ©2013
                                                </font></div>
                                                <div class='clr'></div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </center>

        <div id="footerSlideContainer"><div id="footerSlideButton"></div><div id="footerSlideContent"><div id="footerSlideText">
                    <span class="titles">ADMIN - PHUCHY220_284</span>
                    <ul>
                        <div>
                            <a href="ymsgr:sendim?phuchy220_284"><font size="2" face="Arial"><img vspace="5" border="0" align="middle" alt="Click để Chat với Admin !" src="http://opi.yahoo.com/online?u=phuchy220284&amp;m=g&amp;t=14&amp;l=us" title="Click để Chat với DesignAD!"></font></a>
                        </div>
                    </ul>
                    <div class="line"></div>
                    <span class="titles">SMOD - NHANTT1992</span>
                    <ul>
                        <div>
                            <a href="ymsgr:sendim?nhantt1992"><font size="2" face="Arial"><img vspace="5" border="0" align="middle" alt="Click để Chat với Admin !" src="http://opi.yahoo.com/online?u=nhantt1992&amp;m=g&amp;t=14&amp;l=us" title="Click để Chat với ETDUCPHONG"></font></a
                                ></div>

                    </ul>
                    <div class="line"></div>

         </div></div></div>

		<a href="#" class="back-to-top"><img src="image/chung/back_to_top.png"></a>
        <style>
            .back-to-top {
                position: fixed;
                bottom: 375px;
                right: 0px;
                text-decoration: none;
                color: #000000;
                background-color: rgba(235, 235, 235, 0.80);
                font-size: 8px;
                padding: 1em;
                display: none;
            }

            .back-to-top:hover {
                background-color: rgba(135, 135, 135, 0.50);
            }
        </style>
        <script>
            $(document).ready(function() {
                // Show or hide the sticky footer button
                $(window).scroll(function() {
                    if ($(this).scrollTop() > 100) {
                        $('.back-to-top').fadeIn(600);
                    } else {
                        $('.back-to-top').fadeOut(600);
                    }
                });

                // Animate the scroll to top
                $('.back-to-top').click(function(event) {
                    event.preventDefault();
                    $('html, body').animate({scrollTop: 0}, 500);
                })
            });
        </script>
    </body>
</head>